<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />
<link rel="stylesheet"
			href="<c:url value='/scripts/themes/base/jquery.ui.all.css'/>"
			type="text/css" />
	</head>
	<body style="">


		<div id="headBar" class="head_content">
			<div class="finder-action" id="finder-action-c24ae4">
				<div class="finder-action-inner clearfix">
					<button type="button" wrapimg="true" onclick="location.reload()"
						class="btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 22px; height: 24px; background-position: 0pt -644px;">
							</i>刷新</span> </span>
					</button>
					<button type="button" class="btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 17px; height: 24px; background-position: 0pt -757px;">
							</i>删除</span> </span>
					</button>
					<button type="button" class="btn" id="comment_search_btn">
						<span><span><i class="finder-icon"><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle icon"
										style="width: 26px; height: 24px; background-position: 0pt -460px;">
							</i>筛选</span> </span>
					</button>
				</div>
			</div>

			<div  class="finder-header">
				 
				<table cellpadding="0" cellspacing="0" width="100%">
					<!----cols---->
					<col style="width: 24px;" class="span-select" />
					<col style="width: 48px;" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col />
					<!----cols---->
					<thead>
						<tr>
							<td>
								<input class="sellist" name="ask_ids"  
									type="checkbox">
							</td>
							<td style="width: 48px;">
								&nbsp;查看
							</td>
					
							<td>
								<div class="cell orderable" key="title">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">标题</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="goods_id">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询商品</span>
												</td>

											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="author">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询人</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="time">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">咨询时间</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="lastreply">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">回复时间</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="adm_read_status">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">已阅</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="reply_name">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">最后回复人</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								<div class="cell orderable" key="display">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td>
													<span class="finder-col-label">前台显示</span>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
					</thead>
				</table>
			</div>

		</div>
		<div id="main" class="main_content">
			<div class="finder-list finder-list-normal" id="finder-list-c24ae4">
				<table cellpadding="0" cellspacing="0" width="100%"  id="ask_list_table">
					<!----cols---->
					<col style="width: 24px;" class="span-select" />
					<col style="width: 48px;" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col style="" />
					<col />
					<!----cols---->
					<tbody>
						<c:forEach var="ask" items="${memberCommentss}" varStatus="askIndex">
						<tr class="row" item-id="3">
							<td>
								<input onclick="changeColor(this)"  class="sel" name="memberCommentss[${askIndex.index }].commentId" value="${ask.commentId }" type="checkbox" />
							</td>
							<td class="finder-list-command">
								 
								<a 	href="mb_comment_edit.html?commentId=${ask.commentId }" ><img
										src="<c:url value="/images/transparent.gif"/>"
										class="imgbundle"
										style="width: 16px; height: 16px; background-position: 0pt -1811px;">
								</a>
							</td>
							<td key="title">
								<div class="cell">
									${ask.title }
								</div>
							</td>
							<td key="goods_id">
								<div class="cell">
									${ask.goodsId }
								</div>
							</td>
							<td key="author">
								<div class="cell">
									${ask.memberId}
								</div>
							</td>
							<td key="time">
								<div class="cell">
									${ask.createDate }
								</div>
							</td>
							<td key="lastreply">
								<div class="cell">
									${ask.replyDate }
								</div>
							</td>
							<td key="adm_read_status">
								<div class="cell">
									${ask.adminRead }
								</div>
							</td>
							<td key="reply_name">
								<div class="cell">
									${ask.replyName }
								</div>
							</td>
							<td key="display">
								<div class="cell">
									${ask.showOn }
								</div>
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
						</c:forEach>
					</tbody>
				</table>
				 
			</div>
			
		</div>
		<div style="width: 1215px;" id="footBar" class="foot_content">
			<div class="finder-footer" id="finder-footer-c24ae4">
				<div class="finder-page clearfix">
					<div class="span-3">
						 
					</div>
					<div class="span-auto"></div>
					<div class="span-auto textright">
						共<i>${fn:length(memberCommentss)}</i>条
					</div>
				</div>
			</div> 
		</div>


				<div id="comment_search_dialog" title="搜索" style="display: none;">
			<form id="member_search_form" method="post"  
			<c:if test="${memberCommentParameter.type eq 'ask' }">action="mb_comment_ask_list.html"</c:if>
			<c:if test="${memberCommentParameter.type eq 'discuss' }">action="mb_comment_discuss_list.html"</c:if>			
			>
				<input type="hidden" name="memberCommentParameter.type"  value="${memberCommentParameter.type}" />
				<div container="true" class="dialog-content-body">
					
					<div id="">
						<div class="gridlist">
							
							<div name="uname" class="row">
								<div class="row-line">
									<div tp="label" class="span-3">
										评论人
									</div>
									<div tp="allege" class="span-3">
										&nbsp;
									</div>
									<div tp="input" class="span-6">
										<input type="text" value="${memberCommentParameter.memberName}"   name="memberCommentParameter.memberName" class="x-input " />
									</div>
									<div class="span-1"></div>
								</div>
							</div>
							<div name="name" class="row">
								<div class="row-line">
									<div tp="label" class="span-3">
										联系方式
									</div>
									<div tp="allege" class="span-3">
										&nbsp;
									</div>
									<div tp="input" class="span-6">
										<input type="text" value="${memberCommentParameter.contact}"  name="memberCommentParameter.contact" class="x-input "  />
									</div>
									<div class="span-1"></div>
								</div>
							</div>
							
							<div name="mobile" class="row">
								<div class="row-line">
									<div tp="label" class="span-3">
										标题
									</div>
									<div tp="allege" class="span-3">
										&nbsp;
									</div>
									<div tp="input" class="span-6">
										<input type="text" value="${memberCommentParameter.title}"  name="memberCommentParameter.title" class="x-input "/>
									</div>
									<div class="span-1"></div>
								</div>
							</div>
						
					
							<div name="regtime" class="row">
								<div class="row-line">
									<div tp="label" class="span-3">
										发表时间
									</div>
									<div tp="allege" class="span-3">
										&nbsp;
									</div>
									<div tp="input" class="span-6">
										 
											<input type="text" size="10"  id="search_begin" value="${memberCommentParameter.beginDate}"
												name="memberCommentParameter.beginDate"  class="cal " />
												- 
											<input type="text" size="10"   id="search_end" value="${memberCommentParameter.endDate }"
														name="memberCommentParameter.endDate"   class="cal "/>
									</div>
									<div class="span-1"></div>
								</div>
							</div>
							
						</div>
					</div>
				</div>
				<div class="dialog-content-foot" style="">
					<center>
						<button class="btn" id="batch_edit_btn" type="submit">
							<span><span>搜索</span> </span>
						</button>
					</center>
				</div>
			</form>
		</div>

		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<%@ include file="/jsp/admin/common/messages.jsp"%>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.core.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.widget.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/ui/jquery.ui.datepicker.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/ui/i18n/jquery.ui.datepicker-zh-CN.js'/>"></script>
		
		
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.mouse.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.button.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.draggable.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.position.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.resizable.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.ui.dialog.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/ui/jquery.effects.core.js'/> "></script>
		 
		
		<script type="text/javascript">
		var selected = 'selected';
	$("#ask_ids").click(function() {
		if (this.checked) {
			$('input[type=checkbox]').attr("checked", true);

			$('#ask_list_table > tr').addClass(selected);
		} else {
			$('input[type=checkbox]').attr("checked", false);
			$('#ask_list_table > tr').removeClass(selected);
		}
	});

	function changeColor(obj) {
		if ($(obj).attr("checked")) {
			$(obj).parent().parent().addClass(selected);
		} else {
			$(obj).parent().parent().removeClass(selected);
		}
	}
		
	var selected = 'selected';
	$("#ask_ids").click(function() {
		if (this.checked) {
			$('input[type=checkbox]').attr("checked", true);

			$('#ask_list_table >tbody > tr').addClass(selected);
		} else {
			$('input[type=checkbox]').attr("checked", false);
			$('#ask_list_table >tbody > tr').removeClass(selected);
		}
	});
	
	
	
	
	$(function() {		
		
		$("#comment_search_dialog").dialog( {
			autoOpen : false,
			height : 420,
			width : 750,
			modal : true,
			buttons: {
				
			},
			close : function() {

			}
		});
		
		$('#comment_search_btn').click(function() {
			$('#comment_search_dialog').dialog('open');
		});

	});
 

	$("#search_begin").datepicker( $.datepicker.regional['zh-CN']);
	$("#search_end").datepicker( $.datepicker.regional['zh-CN']);

 



	

	


	
</script>
		 
	</body>
</html>